package com.tencent.live.liveroom.roomutil.http;


import com.tencent.live.liveroom.roomutil.AnchorInfo;
import com.tencent.live.liveroom.roomutil.AudienceInfo;
import com.tencent.live.liveroom.roomutil.RoomInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by jac on 2017/10/30.
 */

public class HttpResponse {

    public transient static int CODE_OK = 0;

    public int      code;
    public long     timestamp;
    public String   message;

    public static class LoginResponse extends HttpResponse {
        public String userID;
        public String token;
    }

    public static class RoomList extends HttpResponse {
        public List<RoomInfo> rooms;
    }

    public static class PusherList extends HttpResponse {
        public String           roomID;
        public String           roomInfo;
        public String           roomCreator;
        public String           mixedPlayURL;
        public int              roomStatusCode;
        public List<AnchorInfo> pushers;
    }

    public static class AudienceList extends HttpResponse {
        public List<AudienceInfo> audiences; //观众列表
    }

    public static class CreateRoom extends HttpResponse {
        public String roomID;
    }

    public static class PushUrl extends HttpResponse {
        public String pushURL;
        public String accelerateURL;
    }

    public static class MergeStream extends HttpResponse {
        public int      merge_code;
        public String   merge_msg;
    }

    public static class GetCustomInfoResponse extends HttpResponse {
        public Map<String, Object> custom;
    }
}